//
//  BCUpdateUserHeadImageRequest.m
//  GSBlockChain
//
//  Created by guoshikeji_a on 2018/12/3.
//  Copyright © 2018 guoshikeji. All rights reserved.
//

#import "BCUpdateUserHeadImageRequest.h"

@implementation BCUpdateUserHeadImageRequest
- (HttpRequestMethod)requestMethod {
    return POST;
}
- (NSString *)service {
    return @"App.Compile.Set_head_img";
}
- (NSString *)device_type {
    return @"2";
}

- (BOOL)success:(NSURLSessionDataTask *)task data:(id)obj {
    BOOL success = [super success:task data:obj];
    if (success) {
        BCUpdateUserInfoResponse *resp = [BCUpdateUserInfoResponse yy_modelWithJSON:obj];
        if (self.requestSuccessed) {
            self.requestSuccessed(resp, nil);
        }
    }
    return success;
}
@end
